function global:wget($Address, [switch]$NoCache)
{
	$client = New-Object Net.WebClient
	# sets the user agent to IE7
	$client.Headers.Add("User-Agent", "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)")
	if ($NoCache) {
		# doesn't use the cache at all
		$client.CachePolicy = New-Object Net.Cache.RequestCachePolicy([Net.Cache.RequestCacheLevel]::NoCacheNoStore)
	}

	$client.DownloadString($Address)
}
